package work.xiaohong.search.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class SkuEsModel {
    /**
     * 查询SpuInfoEntity中有的
     */
    private Long skuId;
    private Long spuId;
    private String skuTitle;
    private BigDecimal skuPrice;
    private String skuImg;
    private Long saleCount;
    private Long brandId;
    private Long catelogId;
    /**
     * CategoryEntity中
     */
    private String catelogName;
    /**
     * ware中的
     */
    private Boolean hasStock;
    private Long hotScore;
    /**
     * brand中
     */
    private String brandName;
    private String brandImg;
    /**
     * attr中
     */
    private List<attr> attrs;

    @Data
    public static class attr {
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}